﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace z.Controllers {
	public class App {
		public static m.db.Database db;
		static App() {
			resetDB();
		}
		public static void resetDB() {
			db = new m.db.Database();
		}
		public static string DateToString(DateTime? date) {
			if (date.HasValue) {
				return date.Value.ToString("yyyy-MM-ddTHH:mm");
			} else {
				return "";
			}
		}
	}
}